package edu.dlnu.newbootdemo.dao;

import edu.dlnu.newbootdemo.pojo.Subject;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SubjectMapper {
    // 查询某专业名下的班级
    Subject selectAllClassesByName(String name);
    Subject selectByPrimaryKey(Integer sid);
    List<Subject> selectByName(String name);

    int deleteByPrimaryKey(Integer sid);

    int insert(Subject record);
    int insertSelective(Subject record);

    int updateByPrimaryKeySelective(Subject record);
    int updateByPrimaryKey(Subject record);
}